﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace OnlineAuction.Admin
{
    public partial class Admin : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["username"] == null) 
                Response.Redirect("../Guest/Login.aspx");
            if ((int)Session["state"] == 1)
            {
                lblUsername.Text = Session["server"].ToString() +'@'+ Session["username"].ToString();
             }
            else
            {
                Response.Redirect("../Guest/Login.aspx");
            }
        }
    }
}
